﻿@model Com.ProjectA.FAMvc.Areas.admin.Models.PersonModel

@using (Html.BeginForm("Detail", "MemMgn", FormMethod.Post, new { @id = "formDetail" }))
{
    <p class="validateTips">All form fields are required.</p>
    @*<fieldset class="createForm">
        <label for="first_name" class="createForm">First Name</label>
        <input type="text" name="first_name" id="first_name" class="createForm text ui-widget-content ui-corner-all" />*@
    <fieldset class="createForm">
        <legend>DAOPerson</legend>
        @*<div class="editor-label">
            @Html.LabelFor(model => model.person_id, new { @class = "createForm" })
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.person_id, new { @class = "createForm text ui-widget-content ui-corner-all" })
        </div>
        *@
        @Html.HiddenFor(model => model.person_id)

        <div class="editor-label">
            @Html.LabelFor(model => model.person_code, new { @class = "createForm" })
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.person_code, new { @class = "createForm text ui-widget-content ui-corner-all", @disabled = "disabled" })
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.first_name, new { @class = "createForm" })
        </div>
        <div class="editor-field">
            @*<input name="first_name" id="first_name" value="@Model.first_name" class="createForm text ui-widget-content ui-corner-all validate[required] text-input" type="text" />*@
            @Html.TextBoxFor(model => model.first_name, new { @class = "createForm text ui-widget-content ui-corner-all" })
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.middle_name, new { @class = "createForm" })
        </div>
        <div class="editor-field">
            @*<input name="middle_name" id="middle_name" value="@Model.middle_name" class="createForm text ui-widget-content ui-corner-all" data-validation-engine="validate[required,custom[middle_name]]" type="text" data-errormessage-value-missing="Middle name is required!"/>*@
            @Html.TextBoxFor(model => model.middle_name, new { @class = "createForm text ui-widget-content ui-corner-all" })
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.last_name, new { @class = "createForm" })
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.last_name, new { @class = "createForm text ui-widget-content ui-corner-all" })
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.birthday, new { @class = "createForm" })
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.birthday, new { @class = "createForm text ui-widget-content ui-corner-all" })
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.death_day, new { @class = "createForm" })
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.death_day, new { @class = "createForm text ui-widget-content ui-corner-all" })
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.number_children, new { @class = "createForm" })
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.number_children, new { @class = "createForm text ui-widget-content ui-corner-all" })
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.sex, new { @class = "createForm" })
        </div>
        <div class="editor-field">
            @Html.CheckBoxFor(model => model.chkSex, new { @class = "createForm text ui-widget-content ui-corner-all" })
        </div>

        @*<div class="editor-label">
            @Html.LabelFor(model => model.biography_id, new { @class = "createForm" })
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.biography_id, new { @class = "createForm text ui-widget-content ui-corner-all" })
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.born_id, new { @class = "createForm" })
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.born_id, new { @class = "createForm text ui-widget-content ui-corner-all" })
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.create_uid, new { @class = "createForm" })
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.create_uid, new { @class = "createForm text ui-widget-content ui-corner-all" })
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.update_uid, new { @class = "createForm" })
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.update_uid, new { @class = "createForm text ui-widget-content ui-corner-all" })
        </div>
        *@
        @Html.HiddenFor(model => model.biography_id)
        @Html.HiddenFor(model => model.born_id)
        @Html.HiddenFor(model => model.create_uid)
        @Html.HiddenFor(model => model.update_uid)
        <div class="editor-label">
            @Html.LabelFor(model => model.person_status, new { @class = "createForm" })
        </div>
        <div class="editor-field">
            @Html.CheckBoxFor(model => model.chkStatus, new { @class = "createForm text ui-widget-content ui-corner-all" })
        </div>
        @*
        <p>
            <input type="submit" value="Save" />
        </p>
        *@
    </fieldset>
}
@*
<div>
    @Html.ActionLink("Back to List", "Index")
    |@Html.ActionLink("Add sibling", "AddPerson", new { id = @Model.person_id, strPerCd = @Model.person_code, isSibling = true})
    |@Html.ActionLink("Add descendent", "AddPerson", new { id = @Model.person_id, strPerCd = @Model.person_code, isSibling = false})
</div>
*@